package net.flydy.ywxcx.wxcloudrun.dao;

import net.flydy.ywxcx.wxcloudrun.model.Merchant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Merchant record);

    int insertSelective(Merchant record);

    Merchant selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Merchant record);

    int updateByPrimaryKey(Merchant record);

    List<Merchant> selectByOpenId(@Param("wxid") String wxid);

    List<Merchant> selectByPhoneNum(@Param("phoneNum") String phoneNum);

    List<Merchant> selectByPhoneNumAndBcode(@Param("phoneNum") String phoneNum, @Param("bcode") String bcode);

}